<template>
  <input 
    type="checkbox"
    :checked="item.completed"
    @click="toggleCompleted(item.id)"
    />
</template>

<script>
export default {
  name: 'CompletedTodo',
  props: ['item'],
  methods: {
    toggleCompleted(id) {
      this.$emit('toggleCompleted', id);
    }
  }
}
</script>
    
<style>

</style>